//
//  OwerRequest.h
//  LeaseMC
//
//  Created by fly驰 on 16/8/20.
//  Copyright © 2016年 XFKJ. All rights reserved.
//

#import "HttpRequest.h"
#import <UIKit/UIKit.h>
#import "NSMutableDictionary+Safe.h"
#import "NSDictionary+Safe.h"

@interface XFPostRequest : HttpRequest
/***************************NEW****************************/
#pragma mark - 版本
+(void)postGetVersionInfoByPlatform:(NSString *)platform
success:(HttpRequestSuccess)success
failure:(HttpRequestFailed)failure;

#pragma mark - 登录
+(void)postRequestLoginUsername:(NSString *)username
                      Password:(NSString *)password
                       success:(HttpRequestSuccess)success
                       failure:(HttpRequestFailed)failure;
#pragma mark - 测试cookie
+(void)postRequestTestCookieuserCode:(NSString *)userCode
                        success:(HttpRequestSuccess)success
                        failure:(HttpRequestFailed)failure;

#pragma mark -
+(void)postRequestTestPictureImages:(UIImage *)images
                            success:(HttpRequestSuccess)success
                            failure:(HttpRequestFailed)failure;
#pragma mark - 店铺食品大类
+(void)postShopFootTypeshopId:(NSString *)shopId
                      success:(HttpRequestSuccess)success
                      failure:(HttpRequestFailed)failure;
#pragma mark - 添加店铺食品大类
+(void)postShopFootTypeAddItemshopId:(NSString *)shopId
                                Name:(NSString *)name
                             success:(HttpRequestSuccess)success
                             failure:(HttpRequestFailed)failure;
#pragma mark - 大类排序修改
+(void)postShopFootTypeUpdateSortshopId:(NSString *)shopId
                            shopItemIds:(NSString *)shopItemIds
                                success:(HttpRequestSuccess)success
                                failure:(HttpRequestFailed)failure;
#pragma mark - 修改大类名字
+(void)postShopFootTypeUpdateShopFoodItemNameshopId:(NSString *)shopId
                                               Name:(NSString *)name
                                            type_id:(NSString *)type_id
                                            success:(HttpRequestSuccess)success
                                            failure:(HttpRequestFailed)failure;
#pragma mark - 删除大类
+(void)postShopFootTypeDeleteShopFoodItemshopId:(NSString *)shopId
                                        type_id:(NSString *)type_id
                                        success:(HttpRequestSuccess)success
                                        failure:(HttpRequestFailed)failure;
#pragma mark - 添加菜品
+(void)postShopAddFootItemshopId:(NSString *)shopId
                          foodItemId:(NSString *)foodItemId
                                Name:(NSString *)name
                               price:(NSString *)price
                            nowPrice:(NSString *)nowPrice
                              images:(UIImage *)images
                               intro:(NSString *)intro
                           paramData:(NSDictionary *)paramData
                               title:(NSString *)title
                             success:(HttpRequestSuccess)success
                             failure:(HttpRequestFailed)failure;
#pragma mark - 修改菜品
+(void)postShopChangeByfoodItems:(NSString *)foodItems
                          shopId:(NSString *)shopId
                      foodItemId:(NSString *)foodItemId
                            Name:(NSString *)name
                           price:(NSString *)price
                        nowPrice:(NSString *)nowPrice
                          images:(UIImage *)images
                           intro:(NSString *)intro
                       paramData:(NSDictionary *)paramData
                           title:(NSString *)title
                         success:(HttpRequestSuccess)success
                         failure:(HttpRequestFailed)failure;
#pragma mark - 注册发送验证码
+(void)postUserGetVerifyCodeByUsername:(NSString *)userName
                                        success:(HttpRequestSuccess)success
                                        failure:(HttpRequestFailed)failure;

#pragma mark - 修改密码发送验证码
+(void)postChangePassWordGetVerifyCodeByUsername:(NSString *)userName
                               success:(HttpRequestSuccess)success
                               failure:(HttpRequestFailed)failure;

#pragma mark - 注册服务员
+(void)postaddWaiterUsername:(NSString *)userName
                         sms:(NSString *)sms
                     success:(HttpRequestSuccess)success
                     failure:(HttpRequestFailed)failure;
#pragma mark - 订单相关 status 1是正常用餐，2是预约的，3是历史，这里默认展示用户已支付的
+(void)postaddWaiterShopId:(NSString *)shopId
                         status:(NSInteger)status
                        page:(NSString *)page
                     success:(HttpRequestSuccess)success
                     failure:(HttpRequestFailed)failure;

#pragma mark -  根据大类查找食品
+(void)postfindFoodsByItemShopId:(NSString *)shopId
                      foodItems:(NSString *)foodItems
                   success:(HttpRequestSuccess)success
                   failure:(HttpRequestFailed)failure;
#pragma mark -  根据 foodsId,查找大类
+(void)postfindTypeByfoodsId:(NSString *)foodsId
                         success:(HttpRequestSuccess)success
                         failure:(HttpRequestFailed)failure;

#pragma mark -  菜品恢复，又有菜品了
+(void)postHaveSallShopId:(NSString *)shopId
                       foodsId:(NSString *)foodsId
                         success:(HttpRequestSuccess)success
                         failure:(HttpRequestFailed)failure;

#pragma mark -  菜品卖完了
+(void)postSallAllShopId:(NSString *)shopId
                       foodsId:(NSString *)foodsId
                         success:(HttpRequestSuccess)success
                         failure:(HttpRequestFailed)failure;
#pragma mark -  增加二维码
+(void)postAddQRCodeShopId:(NSString *)shopId
                 tables:(NSString *)tables
                  action:(BOOL)action
                 success:(HttpRequestSuccess)success
                 failure:(HttpRequestFailed)failure;
#pragma mark -  查看店铺二维码
+(void)postLookQRCodeByShopId:(NSString *)shopId
                   success:(HttpRequestSuccess)success
                   failure:(HttpRequestFailed)failure;

#pragma mark -  修改用户密码
+(void)postChangePassWordByUserName:(NSString *)userName
                                sms:(NSString *)sms
                           password:(NSString *)password
                      success:(HttpRequestSuccess)success
                      failure:(HttpRequestFailed)failure;

#pragma mark -  修改店铺
/* @param shopId  必填，其他可以不用填
* @param name
 shopImage
* @param longitude
* @param latitude
* @param address
* @param phoneNumber
* @param begin
* @param end
* @param intro
* @param shopType
*/
+(void)postChangeShopDataByShopId:(NSString *)shopId
                 shopImage:(UIImage *)shopImage
                      name:(NSString *)name
                   address:(NSString *)address
               phoneNumber:(NSString *)phoneNumber
                     begin:(NSString *)begin
                       end:(NSString *)end
                     intro:(NSString *)intro
                   success:(HttpRequestSuccess)success
                   failure:(HttpRequestFailed)failure;


#pragma mark - 确定订单
+(void)postupdateSureOrderByShopId:(NSString *)shopId
outTradeNo:(NSString *)outTradeNo
                      success:(HttpRequestSuccess)success
                      failure:(HttpRequestFailed)failure;

#pragma mark -  获取所有未读信息，返回总条数
+(void)postgetTotalUnReadByShopId:(NSString *)shopId
                            success:(HttpRequestSuccess)success
                            failure:(HttpRequestFailed)failure;

#pragma mark -  正常订单未读
+(void)postGetNormalUnReadByShopId:(NSString *)shopId
                      success:(HttpRequestSuccess)success
                      failure:(HttpRequestFailed)failure;

#pragma mark -  预约订单未读
+(void)postGetReservationUnReadByShopId:(NSString *)shopId
                            success:(HttpRequestSuccess)success
                            failure:(HttpRequestFailed)failure;
@end
